<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CN_Controller {

	function __construct(){
        //session_start();
        parent::__construct(); 
    }
	
	
	public function index(){
        $user = new User();
        $user->get();
        
        foreach ($user as $u) {
            echo $u->nome . "<br/>";
        }
        /*
        $user->nome="lero lero lero";
        $user->usuario="leroleroooooo";
        $user->senha="123456";
        $user->confirm_senha="123456";
        $user->save();
        */
		$this->load->view('datamapper/form');
	}
}

